package com.lh.ssm.mapper;

import com.lh.ssm.domain.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    User findUserByName(String username);

    int addUser(User user);

    int getUserIdByCode(String code);

    int active(int userId);

    User getUserByName(@Param("username")String username, @Param("password")String password);
}
